﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Domain
{
    /// <summary>
    /// 养殖信息表
    /// </summary>
    [Table("Breeds")]
    public class Breeds
    {
        /// <summary>
        /// 养殖信息ID
        /// </summary>
        [Key]
        public int BreedsId {  get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public string? Variety {  get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        public string? Source { get; set; }
        /// <summary>
        /// 饲养天数
        /// </summary>
        public int  BreedsCount { get; set;}
        /// <summary>
        /// 饲料品牌
        /// </summary>
        public string? FeedBrand { get; set; }
        /// <summary>
        /// 饲养负责人
        /// </summary>
        public string? FeedName { get;set; }
        /// <summary>
        /// 出栏日期
        /// </summary>
        public DateTime GoDates { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string? Batch { get; set; }
        /// <summary>
        /// 溯源表ID
        /// </summary>

        public int TraceabilityId { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        public bool BreedsDel {  get; set; }=false;





        /// <summary>
        /// 添加人
        /// </summary>
        public string? addName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? addDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? updateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? updateDate { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? delName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? delDate { get; set; }
    }
}
